public class RoomModel
{
    private RoomInfo _roomInfo = null;
    public RoomInfo roomInfo
    {
        get { return _roomInfo; }
    }

    public void SetRoomInfo(RoomInfo roomInfo)
    {
        _roomInfo = roomInfo;
    }

    public void Init(NetworkManager networkManager)
    {
        networkManager.SetTcpDisconnectedEvent(OnDisconnected,true);
    }

    void OnDisconnected()
    {
        _roomInfo = null;
    }

    
}